package com.haoshuang.zhouzhoubang.ui.page.help.login

import com.haoshuang.zhouzhoubang.databinding.ItemLoginHelpBinding
import com.haoshuang.zhouzhoubang.model.bean.LoginHelpBean
import com.mufeng.libs.base.BaseBindingHolder
import com.mufeng.libs.base.BaseBindingQuickAdapter
import com.mufeng.libs.utils.view.visibleOrGone

/**
 * 
 */
class LoginHelpAdapter(data: MutableList<LoginHelpBean>) : BaseBindingQuickAdapter<LoginHelpBean, ItemLoginHelpBinding>(data) {

    override fun onBindViewHolder(holder: BaseBindingHolder, position: Int, item: LoginHelpBean?) {
       holder.getViewBinding<ItemLoginHelpBinding>().apply {
            tvTitle.text = item?.title
           viewLine.visibleOrGone(position != items.size - 1)
       }
    }
}
